<template>
  <div>
    <h1>data数据：{{ count }}</h1>
    <h1>计算属性：{{ doubleCount }}</h1>
    <button @click="say()">点击</button>
  </div>
</template>
<script>
export default {
  data () {
    return {
      count: 1
    }
  },
  computed: {
    doubleCount () {
      return this.count * 2
    }
  },
  methods: {
    say () {
      this.count++
    }
  },
  watch: {}
}
</script>
<style lang="less" scoped></style>
